package com.xiaomei.manager.web.controller;

import org.apache.shiro.authz.annotation.RequiresPermissions;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;


import com.xiaomei.manager.service.IUserService;

import com.xiaomei.manager.web.dto.UserAndCompleteDto;

import com.xiaomei.manager.web.dto.req.UserCompleteDto;
import com.xiaomei.manager.web.page.Page;

@Controller
@RequestMapping("/usercomplete")
public class UserCompleteController {
	
	@Autowired
	private IUserService iUserService;
	
	@RequiresPermissions("usercomplete:view")
	@RequestMapping()
	public String list(Model model,UserAndCompleteDto dto,Page<UserCompleteDto> page) {
		iUserService.getUserComplete(dto, page);
		model.addAttribute("dto", dto);
		model.addAttribute("page", page);
		return "bite/usercomplete";
	}
}
